﻿namespace YDT_ProductService.Application.DTOs
{
    /// <summary>
    /// 商品数据传输对象 - 用于API返回
    /// </summary>
    public class ProductDto
    {
        public Guid Id { get; set; }
        /// <summary>商品编码</summary>
        public string ProductCode { get; set; } = string.Empty;
        /// <summary>商品主图</summary>
        public string ProductUrl { get; set; } = string.Empty;
        /// <summary>商品标题</summary>
        public string ProductTitle { get; set; } = string.Empty;
        /// <summary>商品描述</summary>
        public string ProductDescription { get; set; } = string.Empty;
        /// <summary>商品虚拟价格</summary>
        public decimal ProductVirtualprice { get; set; }
        /// <summary>商品实际价格</summary>
        public decimal ProductPrice { get; set; }
        /// <summary>商品排序</summary>
        public int ProductSort { get; set; }
        /// <summary>商品销量</summary>
        public int ProductSold { get; set; }
        /// <summary>商品库存</summary>
        public int ProductStock { get; set; }
        /// <summary>商品状态</summary>
        public string ProductStatus { get; set; } = string.Empty;
        /// <summary>创建时间</summary>
        public DateTime CreateTime { get; set; }
        /// <summary>更新时间</summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>商品图片列表</summary>
        public List<ProductImageDto> ProductImages { get; set; } = new();
    }
}
